#include "StdAfx.h"
#include "SgTransform.h"

CSgTransform::CSgTransform(void)
{
	m_angle = 0;

    m_rx = m_ry = m_rz = 0;

    m_tx = m_ty = m_tz = 0;
	m_sx = m_sy = m_sz = 1;
}

CSgTransform::~CSgTransform(void)
{
}

void CSgTransform::Render(){
		glPushMatrix();
		glTranslated(m_tx, m_ty, m_tz);
		glScaled(m_sx, m_sy, m_sz);
		if(m_angle!=0)
			glRotated(m_angle, m_rx, m_ry, m_rz);
		CSgComposite::Render();
		glPopMatrix();
}